//
//  Person.h
//  demo
//
//  Created by zhouxiaobo on 15/10/20.
//  Copyright © 2015年 mapath. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Mac.h"

@interface Person : NSObject{
    @private
    int age;
    
    @private
    float height;
    
    @private
    NSString *name;
    
    @private
    Mac *mac;
}

- (id) init;
- (id) initWithAge:(int)newAge;
- (id) initWithAge:(int)newAge andHeight:(float)newHeight;

- (void) setAge:(int)newAge;
- (void) setHeight:(float)newHeight;
- (void) setName:(NSString *)newName;
- (void) setMac:(Mac *)newMac;

-(int) getAge;
-(float) getHeight;
-(NSString *) getName;
-(Mac *) getMac;

-(void) studyOCWith:(Mac *)macbook;
+(Person *)getInstance;
@end